package dao

import "trpg-common/utils/gorm_util"

type SystemMessageDao struct{}

func (SystemMessageDao) CountMessage(uid string) int64 {
	sql := `select count(1) from system_message where uid = ? and is_deleted = 'N'`
	var res int64
	gorm_util.Raw(sql, &res, uid)
	return res
}
